<?php
header("Access-Control-Allow-Origin:*");
$file=$_FILES["audioData"];
$pathInfo=pathinfo($file['name']);
//$fileName=time().".".$pathInfo['extension'];
$fileName=time().".wav";
if(move_uploaded_file($file['tmp_name'],"upload/".$fileName)){
	echo '{"code":200,"data":"'.$fileName.'"}';
}else{
    echo '{"code":"200","data":"上传失败"}';
}
?>